cubic polynomial factorisation tricks